<?php
$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>

<h1>Login</h1>

<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

		<?php echo $form->labelEx($model,'username'); ?><br />
		<?php echo $form->textField($model,'username'); ?>
		<?php echo $form->error($model,'username', array("style" => "color:red")); ?>
                <br />
		<?php echo $form->labelEx($model,'password'); ?><br />
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password', array("style" => "color:red")); ?>
                <br />
		<?php echo $form->checkBox($model,'rememberMe'); ?>
		<?php echo $form->label($model,'rememberMe'); ?>
		<?php echo $form->error($model,'rememberMe'); ?>
                <br />
		<?php echo CHtml::submitButton('Login', array("class" => "button")); ?>

<?php $this->endWidget(); ?>
</div><!-- form -->
